
<?php
$v_record_id = 0;

if(isset($_REQUEST['hdn_record_id'])){
//	$v_record_id = intval($_REQUEST['hdn_record_id']);
	$v_record_id = ($_REQUEST['hdn_record_id']);
}

//Luu trang ngay tiep nhan hien thoi
if(isset($_REQUEST['hdn_received_date_filter'])){
	$v_receive_date_filter = $_REQUEST['hdn_received_date_filter'];
}

//DatCQ bo sung de in bien nhan nhieu ho so
if(isset($_REQUEST['name_staff_receipt'])){
	$name_staff_receipt = $_REQUEST['name_staff_receipt'];
}

if(isset($_REQUEST['address_staff_receipt'])){
	$address_staff_receipt = $_REQUEST['address_staff_receipt'];
}

if(isset($_REQUEST['date_receipt'])){
	$date_receipt = $_REQUEST['date_receipt'];
}

//Bo sung in bien nhan dat dai
if(isset($_REQUEST['hdn_recordtype_filter'])){
	$v_recordtype_filter = $_REQUEST['hdn_recordtype_filter'];
}
//End

#DINHNQ REMMED - DATE: 24/05/07
# Content: In noi dung phieu trinh ky
/*
if(isset($_REQUEST['hdn_record_id_list'])){
	$v_record_id = intval($_REQUEST['hdn_record_id_list']);
}
//Luu trang ngay tiep nhan hien thoi
if(isset($_REQUEST['hdn_recordtype_filter'])){
	$v_recordtype_filter = $_REQUEST['hdn_recordtype_filter'];
}
*/
//echo $v_record_id ;
if(_is_sqlserver()){//CSDL MSSQL 
	// Lay noi dung cua mot ho so
	$v_record_id_list = explode(',',$_REQUEST['hdn_record_id']);
	
	if(sizeof($v_record_id_list) <=1){
		$v_record_id = intval($v_record_id);
		//Lay noi dung tu ho so tranh chap
		$sql = "Exec Onegate_RecordGetSingle_dispute " . $v_record_id ;			
		$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
		$arr_single_record = $ado_conn->GetRow($sql); 	
		$arr_single_record_2 = $ado_conn->GetAll($sql);	
		$arr_single_record[C_RECORD_XML_DATA] = stripslashes($arr_single_record[C_RECORD_XML_DATA]);
		
		$v_date_conflict = Get_DMY($arr_single_record_2[0]['C_INPUT_DATE']);
		
		/*//Bo sung in bien nhan dat dai
		$sql = "Exec Onegate_RecordProgressLandSelect '".$v_record_id."','".$v_recordtype_filter."'";
		$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
		$arr_single_record_progress_land = $ado_conn->GetRow($sql); 
	*/
		// Lay thong tin file anh
		session_start();
		$_SESSION['v_record_id_session'] = $v_record_id;
		if($v_record_id > 0){
			$sql = "Exec Onegate_RecordAttachFileGetAll " . $v_record_id ;
			$arr_all_attach_file = _adodb_query_data_in_name_mode($sql);
			$_SESSION['arr_attach'] = $arr_all_attach_file;
			//$_SESSION['v_record_id_session'] = $v_record_id;
		}
	}
	

}
?>